const patientService = require('../service/patientService.js');
module.exports = {
    // 新增就诊人
    async add(req, res) {
        let result = await patientService.add(req.query);
        res.send(result);
    },
    // 删除就诊人
    async del(req, res) {
        let result = await patientService.del(req.query);
        res.send(result);
    },
    // 查询全部
    async select(req, res) {
        let result = await patientService.select();
        res.send(result);
    },
    // 按照姓名查询
    async selectbyname(req, res) {
        let result = await patientService.selectbyname(req.query);
        console.log(result)
        res.send(result);
    }

}
